import {createWebHistory, createRouter} from "vue-router";
import three from '../components/threeD.vue';
import SignIn from '@/components/SignIn';
import ThreeViews from "@/components/ThreeViews";
import imgs from "@/components/Images"
import datasets from "@/components/Datasets"
import script from "@/components/Scripts"
import task from "@/components/Task"
import model from "@/components/Model"
import inference from "@/components/Inference"
import index from "@/components/index"
import test from "@/components/test"
import labels from "@/components/Labels"
import labelsets from "@/components/Labelsets"
import userIndex from "@/components/UserIndex"
import LabelSets from "@/components/analysis/LabelSets"
import LineBar from "@/components/analysis/LineBar"
import ToolsViews from "@/components/ToolsViews";
import ThreeDViews from "@/components/ThreeDViews"
import ModelCenter from "@/components/ModelCenter";
import LabelViews from "@/components/LabelViews"
import Staging from "@/components/Staging"
const history = createWebHistory();
const router = createRouter({
    history,
    routes: [
        {
            path: '/',
            name: 'index',
            component: index,
            meta:{
                showNavbar: false,
                showContent: false,
                showImgIndex: true,
                showMenu: true
            }
        },
        {
            path: '/userIndex',
            name: 'userIndex',
            component: userIndex,
            meta:{
                showNavbar: true,
                showContent: true,
                showMenu:true
            }
        },
        {
            path: '/test',
            name: 'test',
            component: test,
            meta:{
                showImgIndex: true,
                // showMenu: true
            }
        },
        {
            path: '/Staging',
            name: 'Staging',
            component: Staging,
            meta:{
                showImgIndex: true,
                // showMenu: true
            }
        },
        {
            path: '/SignIn',
            name: 'SignIn',
            component: SignIn,
            meta:{
                showImgIndex: true,
            }
        },
        {
            path: '/ThreeViews/:type',
            name: 'ThreeViews',
            component: ThreeViews,
            meta:{
                showImgIndex: true,
            }
        },
        {
            path: '/ThreeDViews',
            name: 'ThreeDViews',
            component: ThreeDViews,
            meta:{
                showImgIndex: true,
            }
        },
        {
            path: '/datasets',
            name: 'datasets',
            component: datasets,
            meta:{
                title:"数据集",
                showNavbar: true,
                showContent: true,
                showIndex: false,
                showMenu:true,
                showPersonal: true
            }
        },
        {
            path: '/modelCenter',
            name: 'ModelCenter',
            component: ModelCenter,
            meta:{
                showNavbar: true,
                showContent: true,
                showIndex: false,
                showMenu:true,
                showPersonal: true
            }
        },
        {
            path: '/labels/:labelsetId',
            name: 'labels',
            component: labels,
            meta:{
                showNavbar: true,
                showContent: true,
                showIndex: false,
                showMenu:true
            }
        },
        {
            path: '/labelsets',
            name: 'labelsets',
            component: labelsets,
            meta:{
                showNavbar: true,
                showContent: true,
                showIndex: false,
                showMenu:true,
                showPersonal: true
            }
        },
        {
            path: '/threeD',
            name: 'threeD',
            component: three,
            meta:{
                showIndex: true
            }
        },
        {
            path: '/LabelViews',
            name: 'LabelViews',
            component: LabelViews,
            meta:{
                showImgIndex: true
            }
        },
        {
            path: '/ToolsViews',
            name: 'ToolsViews',
            component: ToolsViews,
            meta:{
                showImgIndex: true,
            }
        },
        {
            path: '/script',
            name: 'script',
            component: script,
            meta:{
                showNavbar: true,
                showContent: true,
                showIndex: false,
                showMenu:true,
                showPersonal: true
            }
        },
        {
            path: '/task',
            name: 'task',
            component: task,
            meta:{
                showNavbar: true,
                showContent: true,
                showIndex: false,
                showMenu:true,
                showPersonal: true
            }
        },
        {
            path: '/imgs/:imgsetId',
            name: 'Imgs',
            component: imgs,
            meta:{
                showNavbar: true,
                showContent: true,
                showIndex: false,
                showMenu:true
            }
        },
        {
            path: '/model',
            name: 'model',
            component: model,
            meta:{
                showNavbar: true,
                showContent: true,
                showIndex: false,
                showMenu:true,
                showPersonal: true
            }
        },
        {
            path: '/inference',
            name: 'inference',
            component: inference,
            meta:{
                showIndex: true,
                showMenu: true
            }
        },
        {
            path: '/LabelSets',
            name: 'LabelSets',
            component: LabelSets,
            meta:{
                showIndex:true,
            }
        },
        {
            path: '/LineBar',
            name: 'LineBar',
            component: LineBar,
            meta:{
                showIndex:true
            }
        },
    ]
})
export default router;